{template "header-huiyuan.html"}
{template "fanhui-index.html"}
<div class="d-container">
	<div class="d-row">
		<div class="col-md-6 col-md-offset-3  d-yuanjiao-20">
			<div class="row">
				<div class="col-md-12">
					<div class="d-yuanjiao-10 d-kuan d-bianhua-20 ">
						{if !$list}
						<div class="alert alert-danger">
							没有您可用的实名认证
						</div>
						{else}


						<div class="portlet light ">
							<div class="portlet-title tabbable-line">
								<ul class="nav nav-tabs" style="float:left;">
									{loop $list $i $t}
									<li class="{if $mkey==$i}active{/if}">
										<a href="{dr_member_url(APP_DIR.'/home/index')}&key={$i}"> {$t.name} </a>
									</li>
									{/loop}
								</ul>
							</div>
							<div class="form fc-form">
								{php $t=$list[$mkey];}
								{if $t.data}
									{if $t.data.status == 1}
									<p>已认证通过</p>
									{elseif $t.data.status == 2}
									<p style="color: red">审核被拒绝：{$t.data.verify}</p>
									{else}
									<p>{dr_date($t.data.inputtime)} 已提交申请，等待管理员审核</p>
									{/if}
								{/if}
								{if !$t.data || ($t.data && $t.data.status == 2)}
								<form action="" class="form-horizontal" method="post" name="myform" id="myform_{$t.id}">
									{$form}
									{$t.myfield}
									<div class="form-actions fc-form-actions">
										
										<div class="col-md-12 fc-form-submit">
											<button type="button" onclick="dr_ajax_submit('{dr_now_url()}&key={$t.code}', 'myform_{$t.id}', '2000')" class="btn green"> 提交认证 </button>
										</div>

									</div>
								</form>
								{/if}
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{/if}

{template "fanhui.html"}
{template "mfooter.html"}